Skip to content

Conversation

feefladder
Copy link

@feefladder feefladder commented Mar 24, 2025

Currently, documentation for BufRead::consume links to the normal docs that mention there could be a logic error when calling consume, even though this function calls advance internally, which should be safe/no logic error if the user knows the size of the underlying buffer. This pr adds documentation for that.

Specifically, the issue I had was that there is no advance-like function on a buf.reader(), even though I knew the underlying buffer size (and I think more people will know it?)

CI: https://github.com/feefladder/bytes/actions/runs/14041549907

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant